<?php

use Phalcon\Mvc\Controller;

class ControllerBase extends Controller
{
    //配置文件
   protected $config;
   //初始化函数
    public function initialize(){
       $this->config=require APP_PATH.'\app\config\config.php';
        $this->view->setVar('resource',$this->config->static->resource); //资源文件路径
   }
}
